<?php

/**
 * @version		$Id$
 * @package		Joomla.Administrator
 * @subpackage	JoomDOC
 * @author      ARTIO s.r.o., info@artio.net, http:://www.artio.net
 * @copyright	Copyright (C) 2011 Artio s.r.o.. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

$config = JoomDOCSearchConfig::getInstance($params);

echo '<div id="joomdocSearch" ' . ($config->moduleclass_sfx ? 'class="' . htmlspecialchars($config->moduleclass_sfx, ENT_QUOTES) . '"' : '') . '>';
echo '<form name="mod_joomdoc_search_form" method="post" action="' . JRoute::_(JoomDOCRoute::viewDocuments()) . '">';
echo '<input type="text" name="mod_joomdoc_keywords" value="" />';
echo '<button class="btn">' . JText::_('JOOMDOC_SEARCH_SUBMIT') . '</button>';
echo '<input type="hidden" name="mod_joomdoc_area_title" value="' . htmlspecialchars($config->area_title, ENT_QUOTES) . '" />';
echo '<input type="hidden" name="mod_joomdoc_area_text" value="' . htmlspecialchars($config->area_text, ENT_QUOTES) . '" />';
echo '<input type="hidden" name="mod_joomdoc_area_meta" value="' . htmlspecialchars($config->area_meta, ENT_QUOTES) . '" />';
echo '<input type="hidden" name="mod_joomdoc_area_full" value="' . htmlspecialchars($config->area_full, ENT_QUOTES) . '" />';
echo '<input type="hidden" name="mod_joomdoc_parent" value="' . htmlspecialchars($config->parent, ENT_QUOTES) . '" />';
echo '<input type="hidden" name="mod_joomdoc_type" value="' . htmlspecialchars($config->type, ENT_QUOTES) . '" />';
echo '<input type="hidden" name="mod_joomdoc_ordering" value="' . htmlspecialchars($config->ordering, ENT_QUOTES) . '" />';
echo '<input type="hidden" name="mod_joomdoc_search" value="1" />';
echo '</form>';
echo '</div>';
?>
